import request from "@/utils/request";
export function listAll() {
  return request({
    url: "/vipItem/list",
    method: "get",
  });
}
// 分页查询次卡列表
export function listCardByPage(query) {
  return request({
    url: '/vipItem/page',
    method: 'get',
    params: query
  })
}
// 删除次卡
export function delCard(vipItemId) {
  return request({

    url: '/vipItem/' + vipItemId,


    method: 'delete'
  })
}
// 查询次卡详细
export function getCard(vipItemId) {
  return request({
    url: '/vipItem/' + vipItemId,
    method: 'get'
  })
}
// 新增次卡
export function addCard(data) {
  return request({
    url: '/vipItem',
    method: 'post',
    data: data
  })
}
// 修改次卡
export function updateCard(data) {
  return request({
    url: '/vipItem',

    method: 'put',
    data: data
  })

}